package com.erp.programmer.domain;

import java.math.BigDecimal;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 陈鑫
 * @since 2021-05-24
 */
public class PurchaseOrderDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 采购详细的流水号
     */
    private String id;

    /**
     * 该采购详细所对应的采购订单
     */
    private String purchaseId;

    /**
     * 商品id
     */
    private String productId;

    /**
     * 采购了多少该商品（商品数量）
     */
    private String number;

    /**
     * 该详细对应的商品总价
     */
    private BigDecimal totalPrice;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPurchaseId() {
        return purchaseId;
    }

    public void setPurchaseId(String purchaseId) {
        this.purchaseId = purchaseId;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    @Override
    public String toString() {
        return "PurchaseOrderDetail{" +
        "id=" + id +
        ", purchaseId=" + purchaseId +
        ", productId=" + productId +
        ", number=" + number +
        ", totalPrice=" + totalPrice +
        "}";
    }
}
